<?php

class User_Widget_Browse_Profile_Timelinetop extends Nuo_Widget
{

	function execute()
	{
		$mainResource = Nuo::getVar('mainResource');

		if (!$mainResource instanceof Database_Model_Item)
		{
			return;
		}

		$resourceApi = Nuo::getApi('membership');

		$cover = Nuo::getApi('photo')-> getCover($mainResource);
		
		return $this -> render(array(
			'resource' => $mainResource,
			'cover' => $cover
		));
	}

}
